(function () {
    'use strict';

    angular
        .module('logcenterApp')
        .service('AlertMemoService',AlertMemoService);

    AlertMemoService.$inject=['$http','$q'];
    function AlertMemoService($http,$q) {
        var query=function (condition) {
            var deferred=$q.defer();
            $http.post('api/log-alert/alert-memo/query',condition).then(function (resp) {
                deferred.resolve(resp.data);
            },function (error) {
                deferred.reject(error);
            });
            return deferred.promise;
        };

        return {
            query:query
        };
    }
})();
